package com.zjmzxfzhl.modules.purchase.controller.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 【】实体类
 *
 * @author 庄金明
 */
@Getter
@Setter
public class PurchaseOrderDto {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 采购单编号
     */
    @NotNull
    @Length(max = 20)
    private String orderCode;

    /**
     * 采购单名称
     */
    @NotNull
    @Length(max = 128)
    private String orderName;

    private String materialCode;

    private String materialName;

    private String supplierName;

    private String materialSpecification;

    private String indentCode;

    private String contractCode;

    private String orderDate;
    /**
     * 总价
     */
    @DecimalMax("999999999.99")
    private BigDecimal price;

    /**
     * 采购用途
     */
    @Length(max = 128)
    private String orderUsage;

    /**
     * 备注
     */
    @Length(max = 256)
    private String comment;

    /**
     * 状态 : 创建，领导审批已通过，
     */
    @Length(max = 128)
    private String orderState;


    /**
     * 是否有附件 1：是 0 否
     */
    private Integer hasAttachment;

}
